<?php
class ORMCustomerContact extends ORMBase {
  public function __construct() {
    parent::__construct('CustomerContact');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    $epObject->trackId = isset($object->trackId) ? $object->trackId : '';
    $epObject->name = isset($object->name) ? $object->name : '';
    $epObject->addrLn1 = isset($object->addrLn1) ? $object->addrLn1 : '';
    $epObject->addrLn2 = isset($object->addrLn2) ? $object->addrLn2 : '';
    $epObject->phone = isset($object->phone) ? $object->phone : '';
    $epObject->mobile = isset($object->mobile) ? $object->mobile : '';
    $epObject->email = isset($object->email) ? $object->email : '';
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->trackId = $epObject->trackId;
    $object->name = $epObject->name;
    $object->addrLn1 = $epObject->addrLn1;
    $object->addrLn2 = $epObject->addrLn2;
    $object->phone = $epObject->phone;
    $object->mobile = $epObject->mobile;
    $object->email = $epObject->email;
    return $object;
  }
}
?>
